<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../css/dxm-css/addbook.css">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
          integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <link rel="stylesheet" href="../../css/dxm-css/index.css">
    <!--[if lt IE 9]>
    <script src="https://fastly.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
    <script src="https://fastly.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
</head>
<body class="container">
<!--导航-->
<header class="container-fluid">
    <nav class="navbar  nav-box">
        <ul class="nav nav-justified nav-rl" >
            <li class="nav-left">所有图书</li>
            <li class="nav-right describe-book"> < 返回 </li>
        </ul>
    </nav>
</header>
<!--内容-->
<div class="add">
    <div class="add-title">图书名称</div>
    <form id="entryForm">
        <div class="input-group">
            <div class="add-input-left">
                <div class="add-input-left-title">图书名称</div>
                <input type="text" class="form-control" placeholder="图书名称" id="bookName" name="name">
            </div>
            <div class="add-input-right">
                <div class="add-input-right-title">图书编号</div>
                <input type="text" class="form-control" placeholder="图书编号" id="booksId" name="id">
            </div>
        </div>
        <div class="input-group">
            <div class="add-input-left input-left-big">
                <div class="add-input-left-title">图书介绍</div>
                <textarea class="form-control" style="height: 143px" placeholder="图书介绍" name="description"></textarea>
            </div>
            <div class="add-input-right">
                <div class="add-input-right-top">
                    <div class="add-input-right-title">图书作者</div>
                    <input type="text" class="form-control" placeholder="图书作者" id="bookAuthor" name="author">
                </div>
                <div class="add-input-right-bottom">
                    <div class="add-input-right-title">出版社</div>
                    <input type="text" class="form-control" placeholder="出版社" name="publish">
                </div>
            </div>
            <div class="input-group input-group-bottom">
                <div class="add-input-left">
                    <div class="add-input-left-title">图书价格</div>
                    <input type="text" class="form-control" placeholder="图书价格" name="price">
                </div>
                <div class="add-input-right">
                    <div class="add-input-right-title">书架位置</div>
                    <input type="text" class="form-control" placeholder="书架位置" name="position">
                </div>
            </div>
            <div class="add-input-left-title">图书封面图片</div>
            <!--<div class="add-img"></div>
            <span class="label label-primary add-img-btn">选择图片</span>-->
            <input type="file" onchange="fileUpload()" id="input">
            <div class="add-img-p">单文件大小请在1M以内,仅支持JPG、JPEG、PNG格式</div>
        </div>
        <!--底部按钮-->
        <div class="add-btn">
            <span class="label label-default cancel-addbook" style="background-color: gray">取消</span>
            &nbsp;
            &nbsp;
            <span class="label label-default" onclick="addBooks()">保存</span>
        </div>
    </form>
</div>


</body>
<script src="https://lib.baomitu.com/jquery/1.12.4/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
<script src="../../js/dxm-js/index.js"></script>
<script src="../../js/dxm-js/addbook.js"></script>
</html>